package com.onefinger.manager.vos
{
	[Bindable]
	[RemoteClass( alias="com.onefinger.domain.Subcategory" )]
	public class Subcategory
	{
		public var id:Number = 0;
		public var name:String;
		public var shortDescription:String;
		public var showOrder:int;
		public var icon:String;
		public var category:Category;

		public function clone():Subcategory
			{
				var clone:Subcategory = new Subcategory();
				clone.copyFrom( this );
				return clone;
			}

		public function copyFrom( subcategory:Subcategory ):void
			{
				id = subcategory.id;
				name = subcategory.name;
				shortDescription = subcategory.shortDescription;
				showOrder = subcategory.showOrder;
				icon = subcategory.icon;
				category = subcategory.category;
				
			}
		
	}
}